package cmd

import (
	"errors"
	"github.com/spf13/cobra"
)

var  version = "1.0.0"

var rootCmd = &cobra.Command {
	Use: "backup",
	Short: "mysql backup",
	Long: `数据库 备份脚本 `,
	Run: func(cmd *cobra.Command, args []string) {
		Error(cmd, args, errors.New("unrecognized command"))
	},
	Version: version,
}

func Execute() {
	rootCmd.Execute()
}